import os
import socket

connect('weblogic','welcome1','wls12214-0.wls-admin-svc:7001')
servers = cmo.getServers()
domainRuntime()
for server in servers:
	print server.getName()
        cd("/ServerLifeCycleRuntimes/" + server.getName())
        print cmo.getState()
exit()
